package com.maxlen.goods;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * Redis 缓存
 * 1）、SpringBoot2.0 以后默认使用 lettuce 作为操作 redis 的客户端，它使用 netty 进行网络通信
 */
@EnableCaching
@SpringBootApplication
@MapperScan("com.maxlen.goods.dao")
@EnableFeignClients(basePackages = "com.maxlen.goods.feign")
public class StoreGoodsApplication {
    public static void main(String[] args) {
        SpringApplication.run(StoreGoodsApplication.class, args);
    }
}
